<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>我的页面</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    a {
      text-decoration: none;
      color: #999;
    }

    .jacket {
      max-width: 720px;
      width: 100vw;
      height: 100vh;
      margin: 0 auto;
      background-color: #eee;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    header {
      width: 100%;
      padding: 10px;
      background-color: #fff;
      position: absolute;
      top: 0;
      left: 0;
    }

    main {
      padding: 10px;
      width: 100%;
    }

    .box {
      padding: 10px;
      margin-bottom: 5px;
      background-color: #fff;
      text-align: center;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease-in-out;
    }

    .box:hover {
      transform: translateY(-5px);
    }

    .logout {
      background-color: #f8d7da;
      color: #721c24;
    }

    .logout:hover {
      background-color: #f5c2c7;
    }
  </style>
</head>

<body>
  <div class="jacket">
    <header><a href="./mine.html">⟨ 返回</a></header>
    <main>
      <div class="box">客服</div>
      <div class="box">账号与安全</div>
      <div class="box logout" id="logoutBtn">退出登录</div>
    </main>
  </div>
  <script>
    document.getElementById('logoutBtn').addEventListener('click', function () {
      localStorage.removeItem('myToken');
      // 重定向到登录页面
      window.location.href = './login.html';
    });
  </script>
</body>

</html>